import Vue from 'vue'
import App from './App.vue'
//引入elementsUi库
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//引入VueRouter组件
import VueRouter from 'vue-router'
//引入路由器
import router from './router/index'
//引入图标库
/* import echarts from 'echarts'
import ECharts from 'vue-echarts'
Vue.component('ECharts',ECharts) */
//关闭代码生产提示
Vue.config.productionTip = false
//使用插件
Vue.use(VueRouter)
//使用ui
Vue.use(ElementUI);
//创建VM
new Vue({
	render: h => h(App),
	router: router,
	beforeCreate() {
		Vue.prototype.$bus = this //安装全局事件总线，$bus就是当前应用的vm
	}
}).$mount('#app')
